package com.menu.Mapper;

import com.menu.Pojo.AddressVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AddressMapper {

    List<AddressVO> queryAll(Integer userId);

    AddressVO select(Integer addressId);

    Integer insert(AddressVO addressBO);

    Integer delete(Integer addressId);

    Integer updateByPrimaryKeySelective(AddressVO addressBO);

    Integer updateToBeDefault(@Param("addressId") Integer addressId,@Param("state") Integer state);
}
